package com.ecfront.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * 供应商ID
 * @version 1.0
 * @author zhufeng
 */
public class Supplier {
	private Integer id;//供应商ID
	private String name;//供应商名称
	private String goods;//供应商所卖产品
	private String add;//供应商地址
	private String contact;//供应商联系人
	private String phone;//供应商电话
	private Integer qq;//供应商QQ
	private String email;//供应商email
	private String webSite;//供应商的网址
	private Integer state;//供应商是否通过批准 -1为不通过、0为申请中、1为申请通过
	//以下是一对多关联
	private Set<Goods> good = new HashSet<Goods>();

	public Set<Goods> getGood() {
		return good;
	}

	public void setGood(Set<Goods> good) {
		this.good = good;
	}

	public Supplier(){}

	public Supplier(Integer id, String name, String goods, String add,
			String contact, String phone, Integer qq, String email, String webSite) {
		super();
		this.id = id;
		this.name = name;
		this.goods = goods;
		this.add = add;
		this.contact = contact;
		this.phone = phone;
		this.qq = qq;
		this.email = email;
		this.webSite = webSite;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getQq() {
		return qq;
	}

	public void setQq(Integer qq) {
		this.qq = qq;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getGoods() {
		return goods;
	}
	public void setGoods(String goods) {
		this.goods = goods;
	}
	public String getAdd() {
		return add;
	}
	public void setAdd(String add) {
		this.add = add;
	}
	public String getContact() {
		return contact;
	}
	public void setContact(String contact) {
		this.contact = contact;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getWebSite() {
		return webSite;
	}
	public void setWebSite(String webSite) {
		this.webSite = webSite;
	}
}
